package com.spzx.product.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.spzx.common.core.vo.BaseTreeVo;
import com.spzx.common.core.web.domain.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 商品分类展示类 CategoryVo
 *
 * @author gaozz
 */
@Data
@Schema(description = "商品分类")
public class CategoryVo extends BaseTreeVo {

    private static final long serialVersionUID = 1L;

    /**
     * 分类名称
     */
    @Schema(description = "分类名称")
    private String name;

    /**
     * 商品分类图标
     */
    @Schema(description = "商品分类图标")
    private String imageUrl;

    /**
     * 父分类id
     */
    @Schema(description = "父分类id")
    private Long parentId;

    /**
     * 是否显示[0-不显示，1显示]
     */
    @Schema(description = "是否显示")
    private Integer status;

    /**
     * 排序
     */
    @Schema(description = "排序")
    private Integer orderNum;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Schema(description = "创建时间")
    private Date createTime;

    /**
     * 备注
     */
    @Schema(description = "备注")
    private String remark;

}
